package com.ash.spi;

import com.ash.exception.ObjectSerializerException;

/**
 * Hello world!
 *
 */
public interface ObjectSerializer {

    byte[] serialize(Object obj) throws ObjectSerializerException;

    <T> T deSerialize(byte[] param, Class<T> clazz) throws ObjectSerializerException;

    String getSchemeName();
}
